package com.wuxiaofan.admin.api;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wuxiaofan
 * @date 2021/11/18 10:15 上午
 */
@RefreshScope
@RestController
@RequestMapping("test")
@Slf4j
public class TestApi {

    @Value("${ddjk.name}")
    private String ddjkName;


    @RequestMapping("test1")
    public String test1(){
        log.info("ddjkName:{}",ddjkName);
        return ddjkName;
    }
}
